package com.Mapper.User;


import com.BaseMapper.MyBaseMapper;
import com.Model.User.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper extends MyBaseMapper<User> {

    @Select("select * from [User]")
    List<User> getAllUsers();
    @Select("select * from [User] where UserName=#{userName}")
    User selectByUserName(@Param("userName")String userName);
}